const proxy = require('http-proxy-middleware');

// 本地代理跨域
module.exports = function (app) {
	// 代理 /manage
	app.use(proxy('/manage', {
		target: 'http://adminv2.happymmall.com/manage/',
		secure: false,
		changeOrigin: true,
		pathRewrite: {
			"^/manage": "/"
		},
	}));
};